package FileMethodDemo1;

import java.io.File;

public class Test1 {
    public static void main(String[] args) {
        //D:\代码\code    D:\vscode\JavaScript

        //isDirectory()   .isFile()  exists()

        File f1 = new File("D:\\代码\\code");
//        System.out.println(f1.isDirectory());
//        System.out.println(f1.isFile());
//        System.out.println(f1.exists());

        long len = f1.length();  //字节
        //System.out.println(len);

        File f2 = new File("D:\\vscode\\JavaScript");
      //  String path = f2.getAbsolutePath();
        //System.out.println(path);

        File f3 = new File("day23\\js07.js");
        //String path1 = f3.getAbsolutePath();
       // System.out.println(path1);

        String name1 = f2.getName();
        //System.out.println(name1);

        long time = f2.lastModified();
        System.out.println(time);
    }
}
